<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thêm người dùng</title>
<link href="../../css/style.css" type="text/css" rel="stylesheet" media="all"  />
<link href="../../css/mystyle.css" type="text/css" rel="stylesheet" media="all"  />
<style type="text/css">
body,td,th {
	font-size: 1em;
}
</style>
<script type="text/javascript" src="../../script/jquery-latest.js" ></script>
<script type="text/javascript" src="../../script/script.js"></script>
<script type="text/javascript" src="../../script/check.js"></script>
</head>

<body> 	<div class="wrapper">
    	<?php include_once('../../elements/header.php'); ?>
        <div class="content">
        	<div class="left_menu"></div>
            <div class="main_content">       	
            	<div class="header-main">
                	<img src="../../images/1318346316_education_teacher.ico" title="Người dùng mới" />
                	<label class="label">THÊM NHÂN VIÊN</label>
                </div>
                	<?php
						if(isset($_GET['idsuccess']) && $_GET['idsuccess']=="true")
						{
						?>
                       		<p class="idthongbao">Thêm thành công!</p>
						<?php
						}
						else if(isset($_GET['idsuccess']) && $_GET['idsuccess']=="false")
						{
						?>
                       		<p class="idthongbao">Thêm không thành công!</p>
						<?php
						}
						
						?>
                <div class="main-main">
                <form name="flogin" method="post" action="../../controller/usercontrol.php?goto=" onsubmit="return checkinput();" enctype="multipart/form-data" id="flogin">
                	<div class="rows">
                        <span  class="lb"> Tên và chữ lót</span>
                        <span class="input"><input type="text"  name="firstname" value="" id="firstname" /></span>
                        <span class="star">(*)</span>
                    </div>
                    <div  class="rows">
                        <span  class="lb">Họ </span>
                        <span class="input"> <input type="text"  name="lastname" value="" id="lastname" /></span>
                        <span class="star">(*)</span>
                    </div>
                  <div  class="rows">
                        <span  class="lb">Giới tính </span>
                        <span class="input"> 
                       	<select id="gender" name="gender">
                            	<option value="0">Nam</option>
                                <option value="1">Nữ</option>
                            </select>
                    </span>
                    </div>
                  <div  class="rows">
                        <span  class="lb">Ngày sinh </span>
                        <span class="input"> 
                       	<select id="ngay" name="ngay">
                            <?php
								for($i=1; $i<32;$i++) {
							?>
                            	<option value="<?php echo $i ?>"><?php echo $i; ?></option>
                               <?php }?> 
                        </select>
                            <span>/</span>
                            <select id="thang" name="thang">
                            <?php
								for($i=1; $i<=12;$i++) {
							?>
                            	<option value="<?php echo $i ?>"><?php echo $i; ?></option>
                               <?php }?> 
                            </select>
                            <span>/</span>
                       	<input type="text"  value="" name="nam" id="yearbirth" width="50px"/>
                    </span>
                        <span class="star">(*)</span>
                    </div>
                  <div  class="rows">
                        <span  class="lb">Số CMND </span>
                        <span class="input"> <input type="text"  name="cmnd" value="" id="cmnd" onblur="checkcmnd()" /></span>
                        <span class="star">(*)</span>
                    </div>
                     <div style="height:20px; width:100%;margin-left:150px;">
                        	<span class="checkcmnd" id="checkcmnd"></span>
                        </div>
                  <div  class="rows">
                        <span  class="lb">Địa chỉ </span>
                        <span class="input"> <input type="text"  name="address" value="" id="address" /></span>
                    </div>
                  <div style="border:dotted 1px #CCC; margin:20px"></div>
                  <div class="rows">
                        <span  class="lb"> Tên đăng nhập</span>
                        <span class="input"><input type="text"  name="username" value="" id="username" onblur="checkUsername()" /></span>
                        <span class="star">(*)</span>
                    </div>
                     <div style="height:20px; width:100%;margin-left:150px;">
                        	<span class="checkusername" id="checkusername"></span>
                        </div>
                  <div  class="rows">
                        <span  class="lb">Mật khẩu </span>
                        <span class="input"> <input type="password"  name="password" value="" id="password" /></span>
                        <span class="star">(*)</span>
                    </div>
                  <div  class="rows">
                        <span class="lb">Nhập lại mật khẩu</span>
                        <span class="input"> <input type="password" onblur="checkPass()"  name="cfpassword" value="" id="cfpassword"  width="300px"/></span>
                        <span class="star">(*)</span>       
                    </div>
                     <div style="height:20px; width:100%;margin-left:150px;">
                        	<span class="registrationFormAlert" id="divCheckPasswordMatch"></span>
                        </div>
                    <div  class="rows">
                        <span class="lb">Email</span>
                        <span class="input"> <input type="text"  name="email" value="" id="email"  width="300px" onblur="checkemail()"/></span>
                        <span class="star">(*)</span>
                    </div>
                     <div style="height:20px; width:100%;margin-left:150px;">
                        	<span class="checkemail" id="checkemail"></span>
                        </div>
                     <div  class="rows">
                        <span class="lb">Hình ảnh</span>
                        <span class="input"> <input type="file"  name="file"  id="avatar"  width="300px"/></span>
                    </div>
                   <div class="rowbutton">
                        <input type="submit" value="Thêm" name="submit" class="button" />
                        <input type="reset" value="Reset" name="reset" class="button" />
                    </div>
                    </form>
                 </div>
            </div>
            <div class="left_content"></div>
        </div>
       
        <div class="footer">
        	<p style="color:#1038C5; font-size:16px;">Trường Đại học Công Nghệ Thông Tin - Đại học Quốc gia TP HCM</p>
            <p style="color:#999; font-size:9px; float:left">Design by: Nguyễn Thị Mến - Trần Thị Xuân Hiệp</p>
       </div>
	</div>
</body>
</html>
